<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            padding: 20px;
            background: #f5f5f5;
        }

        .container {
            /* max-width: 1200px; */
            width: 100%;
            margin: 0 auto;
        }

        .title {
            margin-bottom: 20px;
            color: #333;
        }

        .commission-cards {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }

        .commission-card {
            padding: 20px;
            border-radius: 8px;
            flex: 1;
            max-width: 300px;
        }

        .level-1 {
            background-color: #ffe4d4;
        }

        .level-2 {
            background-color: #f0e6ff;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .card-title {
            font-weight: bold;
            color: #333;
        }

        .commission-rate {
            color: #666;
        }

        .card-description {
            font-size: 14px;
            color: #666;
        }

        .balance-section {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .balance-title {
            margin-bottom: 20px;
            color: #666;
        }

        .balance-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .balance-item {
            text-align: center;
        }

        .balance-label {
            color: #666;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .balance-value {
            color: #333;
            font-size: 24px;
        }

        .promotion-section {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        .link-box {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .link-text {
            flex: 1;
            padding: 10px;
            background: #f5f5f5;
            border-radius: 4px;
            color: #666;
            font-size: 14px;
        }

        .copy-button {
            padding: 8px 16px;
            background: #1a73e8;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .steps {
            color: #666;
            line-height: 1.6;
        }

        .tabs {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
        }

        .tab {
            padding: 10px 0;
            color: #666;
            cursor: pointer;
            position: relative;
        }

        .tab.active {
            color: #1a73e8;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #1a73e8;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            background: #f5f5f5;
            text-align: left;
            padding: 12px;
            font-weight: normal;
            color: #666;
        }

        .empty-state {
            text-align: center;
            padding: 40px;
            color: #999;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2 class="title">分销规则:</h2>

        <div class="commission-cards">
            <div class="commission-card level-1">
                <div class="card-header">
                    <span class="card-title">一级分销</span>
                    <span class="commission-rate">分销20%</span>
                </div>
                <p class="card-description">成为分销商，下级消费获得20%奖励</p>
            </div>
            <div class="commission-card level-2">
                <div class="card-header">
                    <span class="card-title">二级分销</span>
                    <span class="commission-rate">分销10%</span>
                </div>
                <p class="card-description">成为分销商，下2级消费获得10%奖励</p>
            </div>
        </div>

        <div class="balance-section">
          
            <h3 class="balance-title">我的收益：(佣金冻结30天)</h3>
            <div class="balance-grid">
                <div class="balance-item">
                    <div class="balance-label">可提现佣金（元）</div>
                    <div class="balance-value">0</div>
                </div>
                <div class="balance-item">
                    <div class="balance-label">冻结佣金（元）</div>
                    <div class="balance-value">0</div>
                </div>
                <div class="balance-item">
                    <div class="balance-label">昨日佣金（元）</div>
                    <div class="balance-value">+0</div>
                </div>
                <div class="balance-item">
                    <div class="balance-label">累计提现（元）</div>
                    <div class="balance-value">0</div>
                    <div style="text-align: right; margin-bottom: 10px;">
                        <button class="button">佣金提现</button>
                    </div>
                </div>
            
            </div>
        </div>

        <div class="promotion-section">
            <div class="link-box">
                <div class="link-text">我正在使用AI赚款内容营销和群控软著系统，邀请码的返佣码(7436)送你300积分，快来体验吧！ 注册链接：https://web.aimix.pro/?user_id=7436</div>
                <button class="copy-button">复制</button>
            </div>
            <div class="steps">
                <p>推广步骤：1. 复制推广链接，分享到朋友圈、微信群等任一渠道 2. 下级用户通过链接注册后，即可获得分销关系 3. 邀请下级用户下载安装客户端</p>
                <p>小程序推广：<a href="#" style="color: #1a73e8;">扫码分销</a></p>
                <p>推广步骤：1. 扫码进入小小程序的分面 2. 点击"分销中心" 3. 点击"邀请海报"、生成邀请海报，保存后分享给邀请人</p>
            </div>
        </div>

        <div class="tabs">
            <div class="tab active" data-tab="direct-users">直接用户(null)</div>
            <div class="tab" data-tab="indirect-users">间接用户(null)</div>
            <div class="tab" data-tab="my-orders">我的分销订单(0)</div>
        </div>

        <table class="table">
            <thead>
                <tr>
                    <th>用户昵称</th>
                    <th>订单量</th>
                    <th>佣金金额</th>
                    <th>分销用户量</th>
                    <th>分销订单数量</th>
                    <th>绑定时间</th>
                </tr>
            </thead>
        </table>

        <div class="empty-state">
            暂无数据
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const tabs = document.querySelectorAll('.tab');
            const tabContents = document.querySelectorAll('.tab-content');

            tabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    // 移除所有选项卡的 active 类
                    tabs.forEach(t => t.classList.remove('active'));
                    // 隐藏所有内容
                    tabContents.forEach(content => content.style.display = 'none');

                    // 添加 active 类到当前选项卡
                    this.classList.add('active');
                    // 显示对应的内容
                    const tabId = this.getAttribute('data-tab');
                    document.getElementById(tabId + '-content').style.display = 'block';
                });
            });
        });
    </script>
</body>
</html> 